package factory.components;

import org.eclipse.swt.SWT;

import core.Component;
import core.Coordinate;
import factory.ComponentInterface;

public class Terminal implements ComponentInterface {
	private Component component;
	private final int priority = 2;

	public Terminal() {
		component = new Component(new Coordinate(0, 0), new Coordinate(0, 0));
	}

	public Terminal(Coordinate position, Coordinate size) {
		component = new Component(position, size);
	}

	public Coordinate getSize() {
		return component.getSize();
	}

	public boolean setSize(Coordinate size) {
		component.setSize(size);
		return true;
	}
	
	public int getPriority() {
		return priority;
	}

	public Coordinate getPosition() {
		return component.getPosition();
	}

	public void setPosition(Coordinate position) {
		component.setPosition(position);
	}
	
	public int getOrientation() {
		return SWT.UP;
	}
	
	public void setOrientation(int orientation) {
	}
}